﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace OrionTest.Controllers
{
    class MockDataRepository : Orion.Models.INewsArticleRepository
    {
        List<Orion.Models.NewsArticle> newsArticles = new List<Orion.Models.NewsArticle>();
        Orion.Models.NewsArticle newsArt = new Orion.Models.NewsArticle();

        public void AddNewsArticle(Orion.Models.NewsArticle n)
        {
            newsArticles.Add(n);
        }

        public IEnumerable<Orion.Models.NewsArticle> GetAllNewsArticles()
        {
            return newsArticles;
        }

        public Orion.Models.NewsArticle GetNewsArticleById(int id)
        {
            return newsArt;
        }

        public IEnumerable<Orion.Models.NewsArticle> AllArticles()
        {
            return newsArticles;
        }

        public int Count
        {
            get
            {
                return newsArticles.Count;
            }
        }

        IQueryable<Orion.Models.NewsArticle> Orion.Models.INewsArticleRepository.GetAllNewsArticles()
        {
            throw new NotImplementedException();
        }

        public void UpdateNewsArticle( Orion.Models.NewsArticle na )
        {
            throw new NotImplementedException();
        }

        public IQueryable<Orion.Models.Category> GetAllCategories()
        {
            throw new NotImplementedException();
        }

        public void DisableNewsArticle(Orion.Models.NewsArticle na, string strUser)
        {
            throw new NotImplementedException();
        }

        public void EnableNewsArticle(Orion.Models.NewsArticle na, string strUser)
        {
            throw new NotImplementedException();
        }
    } 
}
